package com.itheima.health.service;

import com.itheima.health.pojo.Member;

import java.util.List;

public interface MemberService {
    Member findById(Integer id);
    Member findByPhone(String phone);
    Integer findByPhoneCount(String phone);
    Member addMember(Member member);

    //List<Integer> countByDate(List<String> months);
    public List<Integer> countByMonth(List<String> monthList);
    List<Integer> countByDate(List<String> months);



//    // 获取身份证号
//    List<Member> idCardList();

    /**
     *  统计年龄
     * 返回值格式：
     * [{"name":"xxx 年龄   "，"value":人数}]
     * @return
     */
    List<Integer> findMemberAgeCount();



    //根据身份证编号获取年龄
    Integer getBirAgeSex(String idCard);


}
